package com.tianhao.luo.nouse;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * @ClassName: Snipper
 * @Description: 狙击手
 * @author: tianhao.luo@hand-china.com
 * @date: 2020/7/7  16:22
 */
public class Snipper extends Soldier {
    private static final Logger LOGGER = LoggerFactory.getLogger(Snipper.class);
    Aug aug;

    public void setGun(Aug gun) {
        this.aug=gun;
    }

    @Override
    public void killEnemy() {
        if (null != aug) {
            LOGGER.info("士兵各就位，准备杀敌");
            aug.model();
            aug.zoomOut();
            aug.sound();
            aug.shoot();
        }
    }
}
